package com.jml.datasource2.service;

import com.jml.dao.UserDao;
import com.jml.datasource1.dao.UserMapperTest01;
import com.jml.datasource2.dao.UserMapperTest02;
import com.jml.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService002 {

	@Autowired
	private UserDao userDao;
	@Autowired
	private UserMapperTest02 userMapperTest02;
	@Autowired
	private UserMapperTest01 userMapperTest01;


	@Transactional
	public void  insert2(){
		userMapperTest02.insert("qwe",1);
		int i=10/0;
	}
}
